using System;
using System.Collections.Generic;
using System.Text;
using Emlyn.Applications.Scratch.Graphics.Tools;
using System.Drawing;

namespace Emlyn.Applications.Scratch.Graphics.Dragon1
{
    public class DragonClass: EAnimatedDirectionSprite
    {
        public DragonClass(
            DirectXWrapper aWrapper, 
            Size aSize, 
            Textures aTextures, 
            int aFramesPerDirection, 
            int aAnimationStepLength
            )
            : base(aWrapper, aSize, aTextures, aFramesPerDirection, aAnimationStepLength)
        {
        }

        private int _speedStep;

        public int SpeedStep
        {
            get { return _speedStep; }
            set { _speedStep = value; }
        }

        protected override void SetFacing(EDirection aFacing)
        {
            base.SetFacing(aFacing);
            SpeedX = EDirectionTools.EDirectionToOffsetX(Facing) * _speedStep;
            SpeedY = EDirectionTools.EDirectionToOffsetY(Facing) * _speedStep;
        }
    }
}
